package com.arsn.myf.business.mapper;

import com.arsn.myf.business.entity.Leave;
import com.arsn.myf.business.vo.LeaveVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 请假mapper接口映射层
 * @author zhongrj
 * @since 2022-11-07
 */
@Mapper
public interface LeaveMapper extends BaseMapper<Leave> {

    /**
     * 查询请假的分页数据
     * @param page
     * @param leave
     * @return
     */
    List<LeaveVO> selectLeavePage(@Param("page") Page<LeaveVO> page, @Param("leave") LeaveVO leave);

    /**
     * 查询详情
     * @param leave
     * @return
     */
    LeaveVO getLeaveDetail(@Param("leave") LeaveVO leave);
}
